package com.bdqn.t382.preview.dao.impl;

import com.bdqn.t382.preview.dao.PetDao;
import com.bdqn.t382.preview.entity.Pet;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;

@Resource
@Repository("petDaoMySQL")
public class PetDaoMySQLImpl implements PetDao {
    @Override
    public int insert(Pet pet) {
        // 此处模拟插入数据，简化操作仅为说明问题
        System.out.println("将宠物“" + pet.getName() + "”插入到 MySQL 数据库");
        return 1;
    }
}
